package com.pro.mapper;

import com.pro.entry.JsComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsCommentMapper
 * Package:com.pro.mapper
 * Description:
 *
 * @Date:2022/4/12 15:06
 * @Author: ZPT
 */
public interface JsCommentMapper {
    /**
     * @author ZPT
     * @content :查询评论信息
     */
    List<JsComment> getComment(@Param("commodityId") Integer commodityId, @Param("type") Integer type);

    /**
     * @author ZPT
     * @content :查询前端用户的头像，名字
     */
    JsComment getBeforeUserById(Integer userId);

    /**
     * @author ZPT
     * @content :查询后端用户的头像，名字
     */
    JsComment getUserById(Integer userId);

}
